#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "networkmanager.h"

// 前向声明
class Card;
class Log;
class Bill;
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void on_pushButton_card_clicked();//点击跳转到会员界面
    void on_pushButton_log_clicked();//点击跳转到日志界面
    void on_pushButton_bill_clicked();
    void on_pushButton_lift_clicked();

    void onDataReceived(const QByteArray &data);//处理接收到的数据

    void on_pushButton_keeplift_clicked();

    void on_pushButton_lower_clicked();

    void on_pushButton_record_incar_clicked();

    void on_pushButton_record_outcar_clicked();

private:
    Ui::Widget *ui;
    Card *card;
    Log *log;
    Bill *bill;
    NetworkManager *networkManager;
};


#endif // WIDGET_H
